package Acoes;

import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import ControleCodeFactory.Simulador;
import InterfaceGrafica.PainelDeInvestimentos;

public class AcaoDeMudarSlider implements ChangeListener {

	private PainelDeInvestimentos painel = null;
	
	public AcaoDeMudarSlider (PainelDeInvestimentos p){
		this.painel = p;
	}
	@Override
	public void stateChanged(ChangeEvent e) {
		painel.getTextoInvestimento().setText(Integer.toString(painel.getSliderInvestimento().getValue()));
		
	}
	
}
